package ace.module.upms.core.impl.service;

import ace.module.common.api.model.input.AppIdListInput;
import ace.module.upms.api.model.dto.UpmsRoleDto;
import ace.module.upms.api.model.input.UpmsRoleBindAccountInput;
import java.util.List;
import java.util.Map;

/**
 * .
 * @author caspar
 */
public interface UpmsRoleService {

  Map<Long, List<UpmsRoleDto>> getAccountIdAndRoleMapByUpmsAppIdAndIamAccountIdIn(
      Long upmsAppId,
      List<Long> iamAccountIds);

  List<UpmsRoleDto> getByUpmsApIdAndIamAccountId(Long upmsAppId,
      Long iamAccountId);

  void saveRoleAccountRelation(AppIdListInput<UpmsRoleBindAccountInput> inputs);
}
